/*
 * Copyright 2010 Electronic Business Systems Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package gr.ebs.gssdroid.resource;


import java.util.ArrayList;
import java.util.List;

import org.json.JSONException;

public class BackResource extends RestResource{
	String name;
	Class resourceClass;
	List<RestResource> resources = new ArrayList<RestResource>();
	RestResource resource;
	public BackResource(String aUri, String name, Class resourceClass, RestResource resource) {
		super(aUri);
		this.name=name;
		this.resourceClass=resourceClass;
		this.resource=resource;
		// TODO Auto-generated constructor stub
	}
	
	public RestResource getResource() {
		return resource;
	}
	
	public String getName() {
		return name;
	}
	
	public Class getResourceClass() {
		return resourceClass;
	}
	
	public List<RestResource> getResources() {
		return resources;
	}
	
	public void setResources(List<RestResource> resources) {
		this.resources = resources;
	}
	
	

	@Override
	public void createFromJSON(String text) throws JSONException {
		// TODO Auto-generated method stub
		
	}

	@Override
	public String getLastModifiedSince() {
		// TODO Auto-generated method stub
		return null;
	}

}
